<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <!-- Bootstrap 的 CSS 文件 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <title>用户注册</title>
    <link rel="stylesheet" href="/css/login.css">
</head>
<body>
<img th:src="@{/images/bg_all.jpg}" class="img-fluid" alt="...">
<form method="post" th:action="@{checkPwd}">
    <div class="main">
        <div class="login">
            <div class="log-con">
                <h1>Register</h1>
                <input type="text" required="required" class="name" placeholder="用户名" name="loginName"/>
                <input type="password" required="required" class="password" placeholder="密码" name="loginPwd"/>
                <input type="password" required="required" class="password" placeholder="确认密码" name="rePassword"/>
                <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                <button class="but" type="submit">注册</button>
                <a th:href="@{login}">登录</a>
            </div>
        </div>
    </div>
</form>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
        crossorigin="anonymous"></script>
</body>
</html>